package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TOrderDetails;

/**
 * 订单明细Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
public interface TOrderDetailsMapper 
{
    /**
     * 查询订单明细
     * 
     * @param id 订单明细主键
     * @return 订单明细
     */
    public TOrderDetails selectTOrderDetailsById(Long id);

    /**
     * 查询订单明细列表
     * 
     * @param tOrderDetails 订单明细
     * @return 订单明细集合
     */
    public List<TOrderDetails> selectTOrderDetailsList(TOrderDetails tOrderDetails);

    /**
     * 新增订单明细
     * 
     * @param tOrderDetails 订单明细
     * @return 结果
     */
    public int insertTOrderDetails(TOrderDetails tOrderDetails);

    /**
     * 修改订单明细
     * 
     * @param tOrderDetails 订单明细
     * @return 结果
     */
    public int updateTOrderDetails(TOrderDetails tOrderDetails);

    /**
     * 删除订单明细
     * 
     * @param id 订单明细主键
     * @return 结果
     */
    public int deleteTOrderDetailsById(Long id);

    /**
     * 批量删除订单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTOrderDetailsByIds(Long[] ids);

    List<TOrderDetails> selectTOrderDetailsByOrdeId(Long orderId);
}
